package com.qf.service;

import com.qf.pojo.Guanzhu;
import com.qf.pojo.Lianhe;

import java.util.List;

public interface GuanZhuService {

    //根据用户id和商品id查询判断,如果有删除,如果没有添加
    Boolean selectByLidAndId(Guanzhu guanzhu);

    //将商品id和用户id添加到关注中
    void insertByLidAndId(Guanzhu guanzhu);

    //根据商品id和用户id删除关注表信息
    void deleteByLidAndId(Guanzhu guanzhu);

    //根据用户id查询关注表信息
    List<Lianhe> selectById(Integer id);
}
